//
//  WorkingCell.m
//  hnGovernment
//
//  Created by 安仔 on 17/2/27.
//  Copyright © 2017年 安仔. All rights reserved.
//

#import "WorkingCell.h"

@implementation WorkingCell
- (instancetype) initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self createWorkingCell];
    }
    return self;
}

- (void)createWorkingCell {
    self.signImg = [[UIImageView alloc] init];
    self.signImg.clipsToBounds = YES;
    self.signImg.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.signImg];
    [self.signImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.contentView.centerY);
        make.left.mas_equalTo(52*m6Scale);
        make.size.mas_equalTo(CGSizeMake(64*m6Scale, 64*m6Scale));
    }];
    
    self.titleLab = [[UILabel alloc] init];
    self.titleLab.textColor = [UIColor colorWithHexString:@"494949"];
    self.titleLab.font = [UIFont systemFontOfSize:28*m6Scale];
    self.titleLab.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.titleLab];
    [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.contentView.centerY);
        make.left.mas_equalTo(self.signImg.mas_right).offset(20*m6Scale);
    }];
    
}

@end
